package com.miyu.system.pojo.book;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import lombok.Data;

/**
 * 阅读章节表;
 * @author : miyu
 * @date : 2022-11-18
 */
@ApiModel(value = "阅读章节表",description = "")
@Data
@Entity
@Table(name="book_reader",indexes = {
        @Index(name = "index_book_reader",columnList = "fpk")})
public class BookReader implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @ApiModelProperty(name = "主键",notes = "")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "chapter_id", nullable = false)
    private Long chapterId ;

    /** 辅助主键;辅助主键 */
    @ApiModelProperty(name = "辅助主键",notes = "辅助主键")
    @Column(name = "fpk", nullable = false, length =32 )
    private String fpk ;

    /** 文本内容 */
    @ApiModelProperty(name = "文本内容",notes = "")
    @Column(name = "chapter_text",columnDefinition="TEXT", nullable = true)
    private String chapterText ;
}